<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_course_task".
 *
 * @property int $id
 * @property int $task_id 课程任务id
 * @property string $task_title 标题
 * @property string $task_content 内容
 * @property int $task_score 分数
 * @property int $task_experience 经验
 * @property string $task_status 状态
 * @property int $member_num 人数
 * @property string $begin_time 开始时间
 * @property string $end_time 结束时间
 * @property string $task_note 备注
 * @property int $major_id 专业ID
 * @property int $create_by 创建人ID
 * @property string $create_time 创建时间
 * @property int $update_by 修改人ID
 * @property string $update_time 修改时间
 * @property string $del_flag 
 */
class TCourseTaskList extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_course_task_list';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id','task_id', 'task_title', 'task_content', 'create_by'], 'required'],
            [['task_score', 'task_experience','del_flag'], 'integer'],
            [['task_title', 'task_content', 'task_status', 'task_note'], 'string'],
            [['begin_time', 'end_time', 'create_time', 'update_time'], 'safe'],
            [['task_content', 'task_note'], 'string', 'max' => 3000],
            [['task_title'], 'string', 'max' => 128],
            [['task_status'], 'string', 'max' => 64],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'task_id' => Yii::t('app', '课程任务id'),
            'task_title' => Yii::t('app', '标题'),
            'task_content' => Yii::t('app', '内容'),
            'task_score' => Yii::t('app', '分数'),
            'task_experience' => Yii::t('app', '经验'),
            'task_status' => Yii::t('app', '状态'),
            'begin_time' => Yii::t('app', '开始时间'),
            'end_time' => Yii::t('app', '结束时间'),
            'task_note' => Yii::t('app', '备注'),
            'major_id' => Yii::t('app', '专业ID'),
            'create_by' => Yii::t('app', 'Create By'),
            'create_time' => Yii::t('app', 'Create Time'),
            'update_by' => Yii::t('app', 'Update By'),
            'update_time' => Yii::t('app', 'Update Time'),
            'del_flag' => Yii::t('app', 'Del Flag'),
        ];
    }
}
